package com.umeox.watch.moto.dataservice.mqtt.request;


import com.alibaba.fastjson.JSONObject;
import com.umeox.moto.mqtt.request.MqttPublishRequest;

public class RpcRequest extends MqttPublishRequest {

    public RpcRequest(String topic, String method, Object message) {
        JSONObject temp = new JSONObject();
        temp.put("method", method);
        temp.put("result", message);
        this.topic = topic;
        this.qos = 0;
        this.payloadObj = temp.toString();
    }
}
